﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ICeFramework.Utilities.Security
{
    public static class Hash
    {
        public static string GetMd5Hash(string value)
        {
            System.Security.Cryptography.MD5CryptoServiceProvider x = new System.Security.Cryptography.MD5CryptoServiceProvider();
            byte[] data = System.Text.Encoding.ASCII.GetBytes(value);
            data = x.ComputeHash(data);
            return System.Text.Encoding.ASCII.GetString(data);
        }
    }
}
